package 张雷;

/**
 * @Auther: zhang l
 * @Date: 2022/4/15 - 04 - 15 - 8:32
 * @Description: 张雷
 * @version: 1.0
 */
class School extends CompurerAverage {
    @Override
    public double average(double x[]){
        int count =x.length;
        double aver=0;
        for (int i=0;i<count;i++){
            aver=aver+x[i];

        }
        aver=aver/count;
        return aver;
    }
}
